#include "nlohmann/json.hpp"
#include <iostream>
#include <fstream>
using namespace std;
using json=nlohmann::json;

int main(int argc, char** argv)
{
    ifstream fin("tmp.json");
    json jj;
    fin >> jj;
    double th = jj["threshold"];
    double t = jj["tau"];
    cout << th << endl;
    cout << t << endl;
    vector<vector<double>> d =  jj["axon"];
    for (int i=0; i<d.size(); i++)
        for (int j=0; j<d[i].size(); j++) 
            cout <<d[i][j] << endl;
    return 0;
}
